using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Input;
using WPFExcelReport.Helpers;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Input;
using WPFExcelReport.Helpers;
using INTEX.DataBase;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    public partial class VK04
    {

        public VK04()
        {

            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            DataContext = new VVK04();
            InitializeComponent();
        }

    }
    public partial class VVK04: ViewModelBase
    {
        public VVK04()
        {
            switch (app.company)
            {
                default:
                case "YGR":
                case "YCC":
                case "TST":
                    SetEnv = new YGRDB();
                    SetData = new YGRDB();
                    SetProd = new YGRDB();
                    break;
                case "JLT":
                    SetEnv = new JLTDB();
                    SetData = new JLTDB();
                    SetProd = new JLTDB();
                    break;
            }
            TableName = "VKPOS";
        }
        #region=Property========
        //-----Property---
         public string AUFARTN { get { if (dwMaster == null) return ""; return dwMaster["AUFARTN"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFARTN"] = value; OnPropertyChanged("AUFARTN", value); } }
 public string AUFKRSN { get { if (dwMaster == null) return ""; return dwMaster["AUFKRSN"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFKRSN"] = value; OnPropertyChanged("AUFKRSN", value); } }
 public string AUFLFDN { get { if (dwMaster == null) return ""; return dwMaster["AUFLFDN"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFLFDN"] = value; OnPropertyChanged("AUFLFDN", value); } }
 public string KUNDNRN { get { if (dwMaster == null) return ""; return dwMaster["KUNDNRN"].ToString(); } set { if (dwMaster == null) return; dwMaster["KUNDNRN"] = value; OnPropertyChanged("KUNDNRN", value); } }
 public string VBN { get { if (dwMaster == null) return ""; return dwMaster["VBN"].ToString(); } set { if (dwMaster == null) return; dwMaster["VBN"] = value; OnPropertyChanged("VBN", value); } }
 public string VGN { get { if (dwMaster == null) return ""; return dwMaster["VGN"].ToString(); } set { if (dwMaster == null) return; dwMaster["VGN"] = value; OnPropertyChanged("VGN", value); } }
 public string ADRSLN { get { if (dwMaster == null) return ""; return dwMaster["ADRSLN"].ToString(); } set { if (dwMaster == null) return; dwMaster["ADRSLN"] = value; OnPropertyChanged("ADRSLN", value); } }
 public string KDBEARB { get { if (dwMaster == null) return ""; return dwMaster["KDBEARB"].ToString(); } set { if (dwMaster == null) return; dwMaster["KDBEARB"] = value; OnPropertyChanged("KDBEARB", value); } }
 public string VKZLFD { get { if (dwMaster == null) return ""; return dwMaster["VKZLFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["VKZLFD"] = value; OnPropertyChanged("VKZLFD", value); } }
 public string AUFARTA { get { if (dwMaster == null) return ""; return dwMaster["AUFARTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFARTA"] = value; OnPropertyChanged("AUFARTA", value); } }
 public string AUFKRSA { get { if (dwMaster == null) return ""; return dwMaster["AUFKRSA"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFKRSA"] = value; OnPropertyChanged("AUFKRSA", value); } }
 public string AUFLFDA { get { if (dwMaster == null) return ""; return dwMaster["AUFLFDA"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFLFDA"] = value; OnPropertyChanged("AUFLFDA", value); } }
 public string KUNDNRA { get { if (dwMaster == null) return ""; return dwMaster["KUNDNRA"].ToString(); } set { if (dwMaster == null) return; dwMaster["KUNDNRA"] = value; OnPropertyChanged("KUNDNRA", value); } }
 public string VBA { get { if (dwMaster == null) return ""; return dwMaster["VBA"].ToString(); } set { if (dwMaster == null) return; dwMaster["VBA"] = value; OnPropertyChanged("VBA", value); } }
 public string VGA { get { if (dwMaster == null) return ""; return dwMaster["VGA"].ToString(); } set { if (dwMaster == null) return; dwMaster["VGA"] = value; OnPropertyChanged("VGA", value); } }
 public string ADRSLA { get { if (dwMaster == null) return ""; return dwMaster["ADRSLA"].ToString(); } set { if (dwMaster == null) return; dwMaster["ADRSLA"] = value; OnPropertyChanged("ADRSLA", value); } }
 public string NAME1 { get { if (dwMaster == null) return ""; return dwMaster["NAME1"].ToString(); } set { if (dwMaster == null) return; dwMaster["NAME1"] = value; OnPropertyChanged("NAME1", value); } }
 public string GESSTA { get { if (dwMaster == null) return ""; return dwMaster["GESSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["GESSTA"] = value; OnPropertyChanged("GESSTA", value); } }
 public string KDSTA { get { if (dwMaster == null) return ""; return dwMaster["KDSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["KDSTA"] = value; OnPropertyChanged("KDSTA", value); } }
 public string AUFSTA { get { if (dwMaster == null) return ""; return dwMaster["AUFSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["AUFSTA"] = value; OnPropertyChanged("AUFSTA", value); } }
 public string POSSTA { get { if (dwMaster == null) return ""; return dwMaster["POSSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["POSSTA"] = value; OnPropertyChanged("POSSTA", value); } }
 public string STA4 { get { if (dwMaster == null) return ""; return dwMaster["STA4"].ToString(); } set { if (dwMaster == null) return; dwMaster["STA4"] = value; OnPropertyChanged("STA4", value); } }
 public string STATUS { get { if (dwMaster == null) return ""; return dwMaster["STATUS"].ToString(); } set { if (dwMaster == null) return; dwMaster["STATUS"] = value; OnPropertyChanged("STATUS", value); } }
 public string PLZ { get { if (dwMaster == null) return ""; return dwMaster["PLZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["PLZ"] = value; OnPropertyChanged("PLZ", value); } }
 public string ORT { get { if (dwMaster == null) return ""; return dwMaster["ORT"].ToString(); } set { if (dwMaster == null) return; dwMaster["ORT"] = value; OnPropertyChanged("ORT", value); } }
 public string SWINGTXT { get { if (dwMaster == null) return ""; return dwMaster["SWINGTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["SWINGTXT"] = value; OnPropertyChanged("SWINGTXT", value); } }
 public string SWING { get { if (dwMaster == null) return ""; return dwMaster["SWING"].ToString(); } set { if (dwMaster == null) return; dwMaster["SWING"] = value; OnPropertyChanged("SWING", value); } }
 public string ANSPRECH { get { if (dwMaster == null) return ""; return dwMaster["ANSPRECH"].ToString(); } set { if (dwMaster == null) return; dwMaster["ANSPRECH"] = value; OnPropertyChanged("ANSPRECH", value); } }
 public string ANSPZUS { get { if (dwMaster == null) return ""; return dwMaster["ANSPZUS"].ToString(); } set { if (dwMaster == null) return; dwMaster["ANSPZUS"] = value; OnPropertyChanged("ANSPZUS", value); } }
 public string OPITTXT { get { if (dwMaster == null) return ""; return dwMaster["OPITTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["OPITTXT"] = value; OnPropertyChanged("OPITTXT", value); } }
 public string OPITEM { get { if (dwMaster == null) return ""; return dwMaster["OPITEM"].ToString(); } set { if (dwMaster == null) return; dwMaster["OPITEM"] = value; OnPropertyChanged("OPITEM", value); } }
 public string ZAHLBED { get { if (dwMaster == null) return ""; return dwMaster["ZAHLBED"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZAHLBED"] = value; OnPropertyChanged("ZAHLBED", value); } }
 public string ZAHLBEZ { get { if (dwMaster == null) return ""; return dwMaster["ZAHLBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZAHLBEZ"] = value; OnPropertyChanged("ZAHLBEZ", value); } }
 public string COVPRC { get { if (dwMaster == null) return ""; return dwMaster["COVPRC"].ToString(); } set { if (dwMaster == null) return; dwMaster["COVPRC"] = value; OnPropertyChanged("COVPRC", value); } }
 public string EKON { get { if (dwMaster == null) return ""; return dwMaster["EKON"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKON"] = value; OnPropertyChanged("EKON", value); } }
 public string KURS { get { if (dwMaster == null) return ""; return dwMaster["KURS"].ToString(); } set { if (dwMaster == null) return; dwMaster["KURS"] = value; OnPropertyChanged("KURS", value); } }
 public string VALUTXT { get { if (dwMaster == null) return ""; return dwMaster["VALUTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VALUTXT"] = value; OnPropertyChanged("VALUTXT", value); } }
 public string VALUTA { get { if (dwMaster == null) return ""; return dwMaster["VALUTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["VALUTA"] = value; OnPropertyChanged("VALUTA", value); } }
 public string VALUGLT { get { if (dwMaster == null) return ""; return dwMaster["VALUGLT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VALUGLT"] = value; OnPropertyChanged("VALUGLT", value); } }
 public string VALDAT { get { if (dwMaster == null) return ""; return dwMaster["VALDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VALDAT"] = value; OnPropertyChanged("VALDAT", value); } }
 public string KUNDNRST { get { if (dwMaster == null) return ""; return dwMaster["KUNDNRST"].ToString(); } set { if (dwMaster == null) return; dwMaster["KUNDNRST"] = value; OnPropertyChanged("KUNDNRST", value); } }
 public string BENRTXT { get { if (dwMaster == null) return ""; return dwMaster["BENRTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BENRTXT"] = value; OnPropertyChanged("BENRTXT", value); } }
 public string BESTNR { get { if (dwMaster == null) return ""; return dwMaster["BESTNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["BESTNR"] = value; OnPropertyChanged("BESTNR", value); } }
 public string BEDATXT { get { if (dwMaster == null) return ""; return dwMaster["BEDATXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BEDATXT"] = value; OnPropertyChanged("BEDATXT", value); } }
 public string BESTDAT { get { if (dwMaster == null) return ""; return dwMaster["BESTDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BESTDAT"] = value; OnPropertyChanged("BESTDAT", value); } }
 public string BESBTXT { get { if (dwMaster == null) return ""; return dwMaster["BESBTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BESBTXT"] = value; OnPropertyChanged("BESBTXT", value); } }
 public string BESTSB { get { if (dwMaster == null) return ""; return dwMaster["BESTSB"].ToString(); } set { if (dwMaster == null) return; dwMaster["BESTSB"] = value; OnPropertyChanged("BESTSB", value); } }
 public string GLTVTXT { get { if (dwMaster == null) return ""; return dwMaster["GLTVTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["GLTVTXT"] = value; OnPropertyChanged("GLTVTXT", value); } }
 public string GLTVON { get { if (dwMaster == null) return ""; return dwMaster["GLTVON"].ToString(); } set { if (dwMaster == null) return; dwMaster["GLTVON"] = value; OnPropertyChanged("GLTVON", value); } }
 public string GLTBTXT { get { if (dwMaster == null) return ""; return dwMaster["GLTBTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["GLTBTXT"] = value; OnPropertyChanged("GLTBTXT", value); } }
 public string GLTBIS { get { if (dwMaster == null) return ""; return dwMaster["GLTBIS"].ToString(); } set { if (dwMaster == null) return; dwMaster["GLTBIS"] = value; OnPropertyChanged("GLTBIS", value); } }
 public string VERBNR { get { if (dwMaster == null) return ""; return dwMaster["VERBNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VERBNR"] = value; OnPropertyChanged("VERBNR", value); } }
 public string ZENTRV { get { if (dwMaster == null) return ""; return dwMaster["ZENTRV"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZENTRV"] = value; OnPropertyChanged("ZENTRV", value); } }
 public string PROJNR { get { if (dwMaster == null) return ""; return dwMaster["PROJNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["PROJNR"] = value; OnPropertyChanged("PROJNR", value); } }
 public string ZENTR { get { if (dwMaster == null) return ""; return dwMaster["ZENTR"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZENTR"] = value; OnPropertyChanged("ZENTR", value); } }
 public string ZENTRZ { get { if (dwMaster == null) return ""; return dwMaster["ZENTRZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZENTRZ"] = value; OnPropertyChanged("ZENTRZ", value); } }
 public string VERSART { get { if (dwMaster == null) return ""; return dwMaster["VERSART"].ToString(); } set { if (dwMaster == null) return; dwMaster["VERSART"] = value; OnPropertyChanged("VERSART", value); } }
 public string VERSBEZ { get { if (dwMaster == null) return ""; return dwMaster["VERSBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VERSBEZ"] = value; OnPropertyChanged("VERSBEZ", value); } }
 public string AEDAT { get { if (dwMaster == null) return ""; return dwMaster["AEDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["AEDAT"] = value; OnPropertyChanged("AEDAT", value); } }
 public string SPEDTXT { get { if (dwMaster == null) return ""; return dwMaster["SPEDTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["SPEDTXT"] = value; OnPropertyChanged("SPEDTXT", value); } }
 public string SPED { get { if (dwMaster == null) return ""; return dwMaster["SPED"].ToString(); } set { if (dwMaster == null) return; dwMaster["SPED"] = value; OnPropertyChanged("SPED", value); } }
 public string SPEDBEZ { get { if (dwMaster == null) return ""; return dwMaster["SPEDBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["SPEDBEZ"] = value; OnPropertyChanged("SPEDBEZ", value); } }
 public string ARCHKZ { get { if (dwMaster == null) return ""; return dwMaster["ARCHKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["ARCHKZ"] = value; OnPropertyChanged("ARCHKZ", value); } }
 public string LIEFBED { get { if (dwMaster == null) return ""; return dwMaster["LIEFBED"].ToString(); } set { if (dwMaster == null) return; dwMaster["LIEFBED"] = value; OnPropertyChanged("LIEFBED", value); } }
 public string LIEFBEZ { get { if (dwMaster == null) return ""; return dwMaster["LIEFBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["LIEFBEZ"] = value; OnPropertyChanged("LIEFBEZ", value); } }
 public string LKOMPTXT { get { if (dwMaster == null) return ""; return dwMaster["LKOMPTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["LKOMPTXT"] = value; OnPropertyChanged("LKOMPTXT", value); } }
 public string LIEFKOMP { get { if (dwMaster == null) return ""; return dwMaster["LIEFKOMP"].ToString(); } set { if (dwMaster == null) return; dwMaster["LIEFKOMP"] = value; OnPropertyChanged("LIEFKOMP", value); } }
 public string AENDDAT { get { if (dwMaster == null) return ""; return dwMaster["AENDDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["AENDDAT"] = value; OnPropertyChanged("AENDDAT", value); } }
 public string PLZU { get { if (dwMaster == null) return ""; return dwMaster["PLZU"].ToString(); } set { if (dwMaster == null) return; dwMaster["PLZU"] = value; OnPropertyChanged("PLZU", value); } }
 public string ORTU { get { if (dwMaster == null) return ""; return dwMaster["ORTU"].ToString(); } set { if (dwMaster == null) return; dwMaster["ORTU"] = value; OnPropertyChanged("ORTU", value); } }
 public string BZU { get { if (dwMaster == null) return ""; return dwMaster["BZU"].ToString(); } set { if (dwMaster == null) return; dwMaster["BZU"] = value; OnPropertyChanged("BZU", value); } }
 public string BZBEZU { get { if (dwMaster == null) return ""; return dwMaster["BZBEZU"].ToString(); } set { if (dwMaster == null) return; dwMaster["BZBEZU"] = value; OnPropertyChanged("BZBEZU", value); } }
 public string AKKRED { get { if (dwMaster == null) return ""; return dwMaster["AKKRED"].ToString(); } set { if (dwMaster == null) return; dwMaster["AKKRED"] = value; OnPropertyChanged("AKKRED", value); } }
 public string ZUSATZ { get { if (dwMaster == null) return ""; return dwMaster["ZUSATZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZUSATZ"] = value; OnPropertyChanged("ZUSATZ", value); } }
 public string GLOBAL { get { if (dwMaster == null) return ""; return dwMaster["GLOBAL"].ToString(); } set { if (dwMaster == null) return; dwMaster["GLOBAL"] = value; OnPropertyChanged("GLOBAL", value); } }
 public string VTYP { get { if (dwMaster == null) return ""; return dwMaster["VTYP"].ToString(); } set { if (dwMaster == null) return; dwMaster["VTYP"] = value; OnPropertyChanged("VTYP", value); } }
 public string KOMENGE { get { if (dwMaster == null) return ""; return dwMaster["KOMENGE"].ToString(); } set { if (dwMaster == null) return; dwMaster["KOMENGE"] = value; OnPropertyChanged("KOMENGE", value); } }
 public string CORQTY { get { if (dwMaster == null) return ""; return dwMaster["CORQTY"].ToString(); } set { if (dwMaster == null) return; dwMaster["CORQTY"] = value; OnPropertyChanged("CORQTY", value); } }
 public string EINGET { get { if (dwMaster == null) return ""; return dwMaster["EINGET"].ToString(); } set { if (dwMaster == null) return; dwMaster["EINGET"] = value; OnPropertyChanged("EINGET", value); } }
 public string OFFEN { get { if (dwMaster == null) return ""; return dwMaster["OFFEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["OFFEN"] = value; OnPropertyChanged("OFFEN", value); } }
 public string EINZPOS { get { if (dwMaster == null) return ""; return dwMaster["EINZPOS"].ToString(); } set { if (dwMaster == null) return; dwMaster["EINZPOS"] = value; OnPropertyChanged("EINZPOS", value); } }
 public string DRBTXT { get { if (dwMaster == null) return ""; return dwMaster["DRBTXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["DRBTXT"] = value; OnPropertyChanged("DRBTXT", value); } }
 public string DRBEST { get { if (dwMaster == null) return ""; return dwMaster["DRBEST"].ToString(); } set { if (dwMaster == null) return; dwMaster["DRBEST"] = value; OnPropertyChanged("DRBEST", value); } }
 public string BSTDAT { get { if (dwMaster == null) return ""; return dwMaster["BSTDAT"].ToString(); } set { if (dwMaster == null) return; dwMaster["BSTDAT"] = value; OnPropertyChanged("BSTDAT", value); } }
 public string ABWADR { get { if (dwMaster == null) return ""; return dwMaster["ABWADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["ABWADR"] = value; OnPropertyChanged("ABWADR", value); } }
 public string LADR { get { if (dwMaster == null) return ""; return dwMaster["LADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["LADR"] = value; OnPropertyChanged("LADR", value); } }
 public string BADR { get { if (dwMaster == null) return ""; return dwMaster["BADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["BADR"] = value; OnPropertyChanged("BADR", value); } }
 public string RADR { get { if (dwMaster == null) return ""; return dwMaster["RADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["RADR"] = value; OnPropertyChanged("RADR", value); } }
 public string ZUAB { get { if (dwMaster == null) return ""; return dwMaster["ZUAB"].ToString(); } set { if (dwMaster == null) return; dwMaster["ZUAB"] = value; OnPropertyChanged("ZUAB", value); } }
 public string TEXT { get { if (dwMaster == null) return ""; return dwMaster["TEXT"].ToString(); } set { if (dwMaster == null) return; dwMaster["TEXT"] = value; OnPropertyChanged("TEXT", value); } }
 public string TEXTANZ { get { if (dwMaster == null) return ""; return dwMaster["TEXTANZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["TEXTANZ"] = value; OnPropertyChanged("TEXTANZ", value); } }

        #endregion
    }
}
